package com.dms.modules.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dms.modules.order.entity.OrderItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderItemMapper extends BaseMapper<OrderItem> {
    
    /**
     * 获取订单项列表
     * @param orderId 订单ID
     * @return 订单项列表
     */
    @Select("SELECT * FROM order_item WHERE order_id = #{orderId}")
    List<OrderItem> getByOrderId(@Param("orderId") Long orderId);
} 